const path = require('path')

const resolve = (filePath) => {return path.join(__dirname, filePath)}

module.exports = {
  chainWebpack: (config) => {
    config.module
      .rule('images')
      .test(/\.(png|jpe?g|JPG|gif|svg|cur|ico)(\?.*)?$/)
      .use('url-loader')
      .loader('url-loader')
      .end()
  }
}
